<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::DistanceMap类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1_distance_map.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="classpcl_1_1_distance_map-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::DistanceMap类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>Represents a distance map obtained from a distance transformation.  
 <a href="classpcl_1_1_distance_map.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="distance__map_8h_source.html">distance_map.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a1754fdebcc8a3ac73a0f265b5dcc50a6"><td class="memItemLeft" align="right" valign="top"><a id="a1754fdebcc8a3ac73a0f265b5dcc50a6"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_distance_map.html#a1754fdebcc8a3ac73a0f265b5dcc50a6">DistanceMap</a> ()</td></tr>
<tr class="memdesc:a1754fdebcc8a3ac73a0f265b5dcc50a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:a1754fdebcc8a3ac73a0f265b5dcc50a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af040fb7a4c1518190d97ce08324caa01"><td class="memItemLeft" align="right" valign="top"><a id="af040fb7a4c1518190d97ce08324caa01"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_distance_map.html#af040fb7a4c1518190d97ce08324caa01">~DistanceMap</a> ()</td></tr>
<tr class="memdesc:af040fb7a4c1518190d97ce08324caa01"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:af040fb7a4c1518190d97ce08324caa01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf747d6a1f08b4f6511dad612b3c5311"><td class="memItemLeft" align="right" valign="top"><a id="acf747d6a1f08b4f6511dad612b3c5311"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_distance_map.html#acf747d6a1f08b4f6511dad612b3c5311">getWidth</a> () const</td></tr>
<tr class="memdesc:acf747d6a1f08b4f6511dad612b3c5311"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the width of the map. <br /></td></tr>
<tr class="separator:acf747d6a1f08b4f6511dad612b3c5311"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9debb47e2e0b9e38e0f30a0e0ccf00b4"><td class="memItemLeft" align="right" valign="top"><a id="a9debb47e2e0b9e38e0f30a0e0ccf00b4"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_distance_map.html#a9debb47e2e0b9e38e0f30a0e0ccf00b4">getHeight</a> () const</td></tr>
<tr class="memdesc:a9debb47e2e0b9e38e0f30a0e0ccf00b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the height of the map. <br /></td></tr>
<tr class="separator:a9debb47e2e0b9e38e0f30a0e0ccf00b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a532eeebde4676e82c7e503f769506d2b"><td class="memItemLeft" align="right" valign="top"><a id="a532eeebde4676e82c7e503f769506d2b"></a>
float *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_distance_map.html#a532eeebde4676e82c7e503f769506d2b">getData</a> ()</td></tr>
<tr class="memdesc:a532eeebde4676e82c7e503f769506d2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer to the beginning of map. <br /></td></tr>
<tr class="separator:a532eeebde4676e82c7e503f769506d2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae39cce471005c7d420336bf192b83d8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_distance_map.html#aae39cce471005c7d420336bf192b83d8">resize</a> (const size_t width, const size_t height)</td></tr>
<tr class="memdesc:aae39cce471005c7d420336bf192b83d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resizes the map to the specified size.  <a href="classpcl_1_1_distance_map.html#aae39cce471005c7d420336bf192b83d8">更多...</a><br /></td></tr>
<tr class="separator:aae39cce471005c7d420336bf192b83d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17f6953e15c505e7b8b0784494c8f1da"><td class="memItemLeft" align="right" valign="top">float &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_distance_map.html#a17f6953e15c505e7b8b0784494c8f1da">operator()</a> (const size_t col_index, const size_t row_index)</td></tr>
<tr class="memdesc:a17f6953e15c505e7b8b0784494c8f1da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operator to access an element of the map.  <a href="classpcl_1_1_distance_map.html#a17f6953e15c505e7b8b0784494c8f1da">更多...</a><br /></td></tr>
<tr class="separator:a17f6953e15c505e7b8b0784494c8f1da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa243d312948a1c112dac0c1668b1e133"><td class="memItemLeft" align="right" valign="top">const float &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_distance_map.html#aa243d312948a1c112dac0c1668b1e133">operator()</a> (const size_t col_index, const size_t row_index) const</td></tr>
<tr class="memdesc:aa243d312948a1c112dac0c1668b1e133"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operator to access an element of the map.  <a href="classpcl_1_1_distance_map.html#aa243d312948a1c112dac0c1668b1e133">更多...</a><br /></td></tr>
<tr class="separator:aa243d312948a1c112dac0c1668b1e133"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:aee8b62aafef2c2c6fdd271f9cab47bf4"><td class="memItemLeft" align="right" valign="top"><a id="aee8b62aafef2c2c6fdd271f9cab47bf4"></a>
std::vector&lt; float &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_distance_map.html#aee8b62aafef2c2c6fdd271f9cab47bf4">data_</a></td></tr>
<tr class="memdesc:aee8b62aafef2c2c6fdd271f9cab47bf4"><td class="mdescLeft">&#160;</td><td class="mdescRight">The storage for the distance map data. <br /></td></tr>
<tr class="separator:aee8b62aafef2c2c6fdd271f9cab47bf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f7235c1af091ad4a96f742eb3269537"><td class="memItemLeft" align="right" valign="top"><a id="a2f7235c1af091ad4a96f742eb3269537"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_distance_map.html#a2f7235c1af091ad4a96f742eb3269537">width_</a></td></tr>
<tr class="memdesc:a2f7235c1af091ad4a96f742eb3269537"><td class="mdescLeft">&#160;</td><td class="mdescRight">The width of the map. <br /></td></tr>
<tr class="separator:a2f7235c1af091ad4a96f742eb3269537"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2833217aa99b593dcee5f7c577ce3ad9"><td class="memItemLeft" align="right" valign="top"><a id="a2833217aa99b593dcee5f7c577ce3ad9"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_distance_map.html#a2833217aa99b593dcee5f7c577ce3ad9">height_</a></td></tr>
<tr class="memdesc:a2833217aa99b593dcee5f7c577ce3ad9"><td class="mdescLeft">&#160;</td><td class="mdescRight">The height of the map. <br /></td></tr>
<tr class="separator:a2833217aa99b593dcee5f7c577ce3ad9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Represents a distance map obtained from a distance transformation. </p>
<dl class="section author"><dt>作者</dt><dd>Stefan Holzer </dd></dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a17f6953e15c505e7b8b0784494c8f1da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17f6953e15c505e7b8b0784494c8f1da">&#9670;&nbsp;</a></span>operator()() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float&amp; pcl::DistanceMap::operator() </td>
          <td>(</td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>col_index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>row_index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Operator to access an element of the map. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">col_index</td><td>the column index of the element to access. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">row_index</td><td>the row index of the element to access. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;      {</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        <span class="keywordflow">return</span> (<a class="code" href="classpcl_1_1_distance_map.html#aee8b62aafef2c2c6fdd271f9cab47bf4">data_</a>[row_index*<a class="code" href="classpcl_1_1_distance_map.html#a2f7235c1af091ad4a96f742eb3269537">width_</a> + col_index]);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;      }</div>
<div class="ttc" id="aclasspcl_1_1_distance_map_html_a2f7235c1af091ad4a96f742eb3269537"><div class="ttname"><a href="classpcl_1_1_distance_map.html#a2f7235c1af091ad4a96f742eb3269537">pcl::DistanceMap::width_</a></div><div class="ttdeci">size_t width_</div><div class="ttdoc">The width of the map.</div><div class="ttdef"><b>Definition:</b> distance_map.h:112</div></div>
<div class="ttc" id="aclasspcl_1_1_distance_map_html_aee8b62aafef2c2c6fdd271f9cab47bf4"><div class="ttname"><a href="classpcl_1_1_distance_map.html#aee8b62aafef2c2c6fdd271f9cab47bf4">pcl::DistanceMap::data_</a></div><div class="ttdeci">std::vector&lt; float &gt; data_</div><div class="ttdoc">The storage for the distance map data.</div><div class="ttdef"><b>Definition:</b> distance_map.h:110</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="aa243d312948a1c112dac0c1668b1e133"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa243d312948a1c112dac0c1668b1e133">&#9670;&nbsp;</a></span>operator()() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const float&amp; pcl::DistanceMap::operator() </td>
          <td>(</td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>col_index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>row_index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Operator to access an element of the map. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">col_index</td><td>the column index of the element to access. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">row_index</td><td>the row index of the element to access. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;      {</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        <span class="keywordflow">return</span> (<a class="code" href="classpcl_1_1_distance_map.html#aee8b62aafef2c2c6fdd271f9cab47bf4">data_</a>[row_index*<a class="code" href="classpcl_1_1_distance_map.html#a2f7235c1af091ad4a96f742eb3269537">width_</a> + col_index]);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;      }</div>
</div><!-- fragment -->
</div>
</div>
<a id="aae39cce471005c7d420336bf192b83d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae39cce471005c7d420336bf192b83d8">&#9670;&nbsp;</a></span>resize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::DistanceMap::resize </td>
          <td>(</td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Resizes the map to the specified size. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>the new width of the map. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>the new height of the map. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;      {</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <a class="code" href="classpcl_1_1_distance_map.html#aee8b62aafef2c2c6fdd271f9cab47bf4">data_</a>.resize (width*height);</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        <a class="code" href="classpcl_1_1_distance_map.html#a2f7235c1af091ad4a96f742eb3269537">width_</a> = width;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <a class="code" href="classpcl_1_1_distance_map.html#a2833217aa99b593dcee5f7c577ce3ad9">height_</a> = height;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;      }</div>
<div class="ttc" id="aclasspcl_1_1_distance_map_html_a2833217aa99b593dcee5f7c577ce3ad9"><div class="ttname"><a href="classpcl_1_1_distance_map.html#a2833217aa99b593dcee5f7c577ce3ad9">pcl::DistanceMap::height_</a></div><div class="ttdeci">size_t height_</div><div class="ttdoc">The height of the map.</div><div class="ttdef"><b>Definition:</b> distance_map.h:114</div></div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>recognition/include/pcl/recognition/<a class="el" href="distance__map_8h_source.html">distance_map.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><a class="el" href="classpcl_1_1_distance_map.html">DistanceMap</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
